<?php
function tc($textnn,$c){
    echo("<link href='../assets/css/bootstrap.min.css' rel='stylesheet'>
<link href='../assets/css/materialdesignicons.min.css' rel='stylesheet'>
<link href='../assets/css/animate.css' rel='stylesheet'>
<link href='../assets/css/style.min.css' rel='stylesheet'>
<script type='text/javascript' src='../assets/js/jquery.min.js'></script>
<script type='text/javascript' src='../assets/js/bootstrap.min.js'></script>
<script type='text/javascript' src='../assets/js/perfect-scrollbar.min.js'></script>
<script src='../assets/js/bootstrap-notify.min.js'></script>
<script type='text/javascript' src='../assets/js/lightyear.js'></script>
<script type='text/javascript' src='../assets/js/main.min.js'></script>"
);
    if($c==1){
        echo("<div id='tc'><script>lightyear.notify('".$textnn."','success', 5000, 'mdi mdi-emoticon-happy', 'top', 'center');</script></div>");
    }elseif($c==0){
        echo("<div id='tc'><script>lightyear.notify('".$textnn."','danger', 5000, 'mdi mdi-account-alert', 'top', 'center');</script></div>");
    }else{
        echo("c不合法");
    }
}    
?>